FROM registry.cn-hangzhou.aliyuncs.com/weilus923/openjdk:8-jre-alpine
ENV SENTINEL_VERSION 1.8.0
RUN set -ex && apk add --virtual .fetch-deps curl
RUN curl -fL -o /sentinel-dashboard.jar https://github.com/alibaba/Sentinel/releases/download/v$SENTINEL_VERSION/sentinel-dashboard-$SENTINEL_VERSION.jar
RUN chmod 777 /sentinel-dashboard.jar && apk del .fetch-deps
CMD ["java","-Djava.security.egd=file:/dev/./urandom","-jar", "/sentinel-dashboard.jar"]
